import request from '@/utils/request'

// 查询钱包提现记录列表
export function listWalletWithdraw(query) {
  return request({
    url: '/wallet/walletWithdraw/list',
    method: 'get',
    params: query
  })
}

// 查询钱包提现记录详细
export function getWalletWithdraw(id) {
  return request({
    url: '/wallet/walletWithdraw/' + id,
    method: 'get'
  })
}

// 新增钱包提现记录
export function addWalletWithdraw(data) {
  return request({
    url: '/wallet/walletWithdraw',
    method: 'post',
    data: data
  })
}

// 修改钱包提现记录
export function updateWalletWithdraw(data) {
  return request({
    url: '/wallet/walletWithdraw',
    method: 'put',
    data: data
  })
}

// 删除钱包提现记录
export function delWalletWithdraw(id) {
  return request({
    url: '/wallet/walletTransaction/' + id,
    method: 'delete'
  })
}
